.class Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;
.super Ljava/lang/Object;
.source "ImageViewTouchDelegate.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/view/ImageViewTouchDelegate;->fling(Lcom/netease/newsreader/view/ImageViewTouch;II)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

.field private final synthetic val$view:Lcom/netease/newsreader/view/ImageViewTouch;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/view/ImageViewTouchDelegate;Lcom/netease/newsreader/view/ImageViewTouch;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    iput-object p2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->val$view:Lcom/netease/newsreader/view/ImageViewTouch;

    .line 259
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 262
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v2}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$0(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/widget/Scroller;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 263
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v2}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$0(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/widget/Scroller;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrX()I

    move-result v2

    int-to-float v2, v2

    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v3}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$1(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/graphics/PointF;

    move-result-object v3

    iget v3, v3, Landroid/graphics/PointF;->x:F

    sub-float v0, v2, v3

    .line 264
    .local v0, transX:F
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v2}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$0(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/widget/Scroller;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Scroller;->getCurrY()I

    move-result v2

    int-to-float v2, v2

    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v3}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$1(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/graphics/PointF;

    move-result-object v3

    iget v3, v3, Landroid/graphics/PointF;->y:F

    sub-float v1, v2, v3

    .line 265
    .local v1, transY:F
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v2}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$1(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/graphics/PointF;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v3}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$0(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/widget/Scroller;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/Scroller;->getCurrX()I

    move-result v3

    int-to-float v3, v3

    iget-object v4, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    invoke-static {v4}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$0(Lcom/netease/newsreader/view/ImageViewTouchDelegate;)Landroid/widget/Scroller;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Scroller;->getCurrY()I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {v2, v3, v4}, Landroid/graphics/PointF;->set(FF)V

    .line 266
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->val$view:Lcom/netease/newsreader/view/ImageViewTouch;

    neg-float v3, v0

    neg-float v4, v1

    invoke-virtual {v2, v3, v4}, Lcom/netease/newsreader/view/ImageViewTouch;->postTranslateCenter(FF)I

    .line 267
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->val$view:Lcom/netease/newsreader/view/ImageViewTouch;

    invoke-virtual {v2, p0}, Lcom/netease/newsreader/view/ImageViewTouch;->post(Ljava/lang/Runnable;)Z

    .line 271
    .end local v0           #transX:F
    .end local v1           #transY:F
    :goto_0
    return-void

    .line 269
    :cond_0
    iget-object v2, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->this$0:Lcom/netease/newsreader/view/ImageViewTouchDelegate;

    iget-object v3, p0, Lcom/netease/newsreader/view/ImageViewTouchDelegate$2;->val$view:Lcom/netease/newsreader/view/ImageViewTouch;

    invoke-static {v2, v3}, Lcom/netease/newsreader/view/ImageViewTouchDelegate;->access$2(Lcom/netease/newsreader/view/ImageViewTouchDelegate;Lcom/netease/newsreader/view/ImageViewTouch;)V

    goto :goto_0
.end method
